import 'package:flutter/material.dart';
import 'package:flutter_demo/redux/bo/cm_frame_work.dart';
import 'package:get/get.dart';

class UserProfileCMP extends CMView {
  UserProfileCMP({super.key});

  @override
  Widget build(BuildContext context) {
    return Row(
      children: [
        SizedBox(
            width: 80,
            height: 80,
            child: Image.network(
                "http://c360-o2o.c360dn.com/000000f5-32ac-48be-938b-56e7d289ed951080")),
        Column(
          crossAxisAlignment: CrossAxisAlignment.start,
          children: [
            Padding(
              padding: const EdgeInsets.fromLTRB(0, 0, 0, 8),
              child: Obx(() => Text(
                    store.userScope.user.value.nickName,
                    style: TextStyle(fontSize: 18, color: Colors.black),
                  )),
            ),
            Text(
              "账户剩余:${store.userScope.user.value.nickName}",
              style: TextStyle(fontSize: 16, color: Colors.grey),
            ),
            Text(
              "剩余照片直播:16场",
              style: TextStyle(
                  fontSize: 16,
                  color: Colors.black,
                  fontWeight: FontWeight.w600),
            ),
          ],
        )
      ],
    );
  }
}
